package com.tongfusoft.document.web.controller.display;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.tongfusoft.document.entity.Folders;
import com.tongfusoft.document.entity.InputProfiles;
import com.tongfusoft.document.entity.Users;
import com.tongfusoft.document.manager.folders.service.IFoldersService;
import com.tongfusoft.document.menu.service.IDocumentMenuService;
import com.tongfusoft.exception.ServiceException;
import com.tongfusoft.spring.web.core.controller.BaseController;
import com.tongfusoft.spring.web.core.data.ResultModel;
import com.tongfusoft.utils.UIDGeneratorService;


@Controller
public class FileDirectoryController extends BaseController{

	@Autowired
	@Qualifier(value="foldersService")
	public IFoldersService iFoldersService;
	
	@RequestMapping("/display/fileDirectory")
	public String template(HttpServletRequest request, Model model) {

		model.addAttribute("mainPageKey", "fileDirectory");
		model.addAttribute("mainPage", "display/fileDirectory");
		model.addAttribute("folderId","");

		return "base";
	}
	
	@RequestMapping("/display/fileDirectory/{folderId}")
	public String template(HttpServletRequest request, Model model,@PathVariable("folderId") String folderId) {

		model.addAttribute("mainPageKey", "fileDirectory");
		model.addAttribute("mainPage", "display/fileDirectory");
		model.addAttribute("folderId",folderId);

		return "base";
	}
	
}
